<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<%
	String path =request.getContextPath();
%>
<head>
    <meta http-equiv="x-ua-compatible" content="ie=7" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script language="javascript" type="text/javascript" src="<%=path%>/js/validatorTool.js"></script>
	<script type="text/javascript">
        //导出
        function exportData(){
			document.form1.action="<%=path%>/other/exportUseCount?isList=y";
			document.form1.submit();
		}	
		//查询数据
		function qryData(){
			document.form1.action="<%=path%>/other/qryuseCountList";
			document.form1.submit();
		}
    </script>
</head>
<body class="fullbody">
            <div class="context">
                <div class="position">
                    <div class="tposi">当前位置：
                        <a href="javascript:changeMenu(1,'<%=path%>/infopub/pubmain?menuid=1');"class="linkstyle">首页</a>&nbsp;&gt;&gt;&nbsp;
                   		<a href="javascript:changeMenu(5,'');" class="linkstyle">业务查询</a>&nbsp;&gt;&gt;&nbsp;
                        <span class="curposition">消耗汇总查询</span>
                    </div>
                    <div class="help">
						<a href="javascript:void(null);" onclick="doHelp('<%=request.getContextPath()%>/help/html/DHCX.html');" class="linkstyle">帮助</a>
					</div>
                </div>
                <div class="margin8"></div>
                <div class="subpage_title">
                    <div class="title_index">
                        <img src="<%=path%>/images/common/dot03.gif" alt="" border="0" />&nbsp;消耗汇总查询</div>
                </div>
                <div class="margin20"></div>
                <div class="subpage_bidlist">
                    <div class="subpage_search" >
                    <!-- 消耗公司、消耗日期范围、采购合同号、存货编码、结算完成标志、开票完成标志
                     -->
                    	<form name="form1" action="<%=path%>/other/qryuseCountList" method="post">
	                        <table border="0" cellpadding="0" cellspacing="0" class="searchtable">
	                            <tr>
	                                <td valign="middle" class="w_1">采购合同号：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="pocode" name="pocode" type="text" value="${useCountHeadForm.pocode}" class="searchtext" />
	                                </td>
	                                <td valign="middle" class="w_1">存货编码：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="invcode" name="invcode" type="text" value="${useCountHeadForm.invcode}" class="searchtext" />
	                                </td>
	                            </tr>
	                            <tr>
	                            	<td valign="middle" class="w_1">消耗公司：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="corpname" name="corpname" type="text" value="${useCountHeadForm.corpname}" class="searchtext" />
	                                </td>
	                                <td valign="middle" class="w_1">汇总日期：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="startsumdate" name="startsumdate" type="text" 
	                                    	onclick="return showCalendar('startsumdate', 'y-mm-dd');" 
		                                    readonly="readonly"	value="${useCountHeadForm.startsumdate}" class="searchdate" />&nbsp;至&nbsp;
	                                    <input id="endsumdate" name="endsumdate" type="text" 
											onclick="return showCalendar('endsumdate', 'y-mm-dd');"  
	                                    	readonly="readonly" value="${useCountHeadForm.endsumdate}" class="searchdate" />
	                                </td>
	                            </tr>
	                            <tr>
	                                <td valign="middle" class="w_1">结算完成标志：</td>
	                                <td valign="middle" class="w_2"><select class="searchtext"
										name="ifjswc" id="ifjswc">
										<option value="">全部</option>
										<option value="Y"
											<c:if test="${'Y'==useCountHeadForm.ifjswc}">selected</c:if>>是</option>
										<option value="N"
											<c:if test="${'N'==useCountHeadForm.ifjswc}">selected</c:if>>否</option>
									</select></td>
	                               	<td valign="middle" class="w_1">开票完成标志：</td>
	                                <td valign="middle" class="w_2"><select class="searchtext"
										name="iftax" id="iftax">
										<option value="">全部</option>
										<option value="Y"
											<c:if test="${'Y'==useCountHeadForm.iftax}">selected</c:if>>是</option>
										<option value="N"
											<c:if test="${'N'==useCountHeadForm.iftax}">selected</c:if>>否</option>
									</select></td>
	                                </td>
	                            </tr>
	                            <tr><td colspan="4">&nbsp;</td></tr>
	                            <tr>
	                                <td valign="middle" colspan="4" align="center">
	                                    <input type="button" class="btnscs" value="查询"  onclick="qryData()"/>&nbsp;&nbsp;
	                                    <input type="button" class="btnscs" value="取消" onclick="resetData()"/>&nbsp;&nbsp;
	                                </td>
	                            </tr>
	                        </table>
                        </form>
                    </div>
                    <div class="margin20">
                    </div>
                    <!--  消耗公司、消耗日期、采购合同号、供应商编码、存货编码、存货名称、规格、图号、主机号、技术要求、计量单位、消耗汇总数量、累计结算数量、结算完成标志、已开票数量、开票完成标志。
                     -->
                    <div>
                         <table class="tableCss" cellpadding="0" cellspacing="0" >
							<tr  class="titleTr" >
                                <th width="17%">产品</th>
                                <th width="17%">数量</th>
                                <th width="23%">汇总信息 </th>
                                <th width="30%">合同信息</th>
                            </tr>
                            <c:if test="${useCountForms!=null}">
								<c:forEach items="${useCountForms}" var="useCountForm" varStatus="index">
									<c:if test="${index.index%2==1}">
										<tr align="left" class="contTr-old"  >
									</c:if>
									<c:if test="${index.index%2==0}">
										<tr align="left" class="contTr-even">
									</c:if>
										<td class="td1">
											<span class="prodName">${useCountForm.invname}</span><br/>
												<c:if test="${useCountForm.invcode!=null && ''!=useCountForm.invcode}">编码：${useCountForm.invcode}<br/></c:if>
												<c:if test="${useCountForm.invspec!=null && ''!=useCountForm.invspec}">规格：${useCountForm.invspec}<br/></c:if>
												<c:if test="${useCountForm.invtype!=null  && ''!=useCountForm.invtype}">型号：${useCountForm.invtype}<br/></c:if>
												<c:if test="${useCountForm.graphid!=null  && ''!=useCountForm.graphid}">图号：${useCountForm.graphid}<br/></c:if>
												<c:if test="${useCountForm.def18!=null  && ''!=useCountForm.def18}">主机号：${useCountForm.def18}<br/></c:if>
												<c:if test="${useCountForm.def20!=null  && ''!=useCountForm.def20}">技术要求：${useCountForm.def20}<br/></c:if>
										</td>
										<td class="td1">
												汇总数量：${useCountForm.count_num}<br/>
												结算数量：${useCountForm.count_num2}<br/>
												计量单位：${useCountForm.measname}<br/>
										</td>
										<td class="td1">
												消耗公司：${useCountForm.corpname}<br/>
												汇总日期：${useCountForm.dsumdate}<br/>
												供应商编码：${useCountForm.suplycode}<br/>
										</td>
										<td class="td1">
												采购合同号：${useCountForm.pocode}<br/>
												结算完成标志：
												<c:if test="${'Y'==useCountForm.ifjswc}">是</c:if>
												<c:if test="${'Y'!=useCountForm.ifjswc}">否</c:if>
												<br/>
												开票完成标志：
												<c:if test="${'Y'==useCountForm.iftax}">是</c:if>
												<c:if test="${'Y'!=useCountForm.iftax}">否</c:if>
												<br/>
												已开票数量：${useCountForm.taxnum}
										</td>
									</tr>
								</c:forEach>
							</c:if>
                        </table>
                    </div>
                </div>
            </div>
        <div class="margin20"></div>
        <div class="margin8">
        	<table align="left">
				<tr class="title">
					<td>
						<div id="message" class="msgcolor">${system_err_msg}</div>
					</td>
				</tr>
			</table>
		</div> 
</body>
</html>
